//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "player\fn_allPlayers.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;
private ["_result","_x"];
_result = [];
if (isMultiplayer) then {
	{ if (isPlayer _x) then {_result set [count _result, _x];};
	}foreach playableUnits;
} else {
	_result set [count _result, player];
};

TRACE("End",_result);
TMFPROFILERSTOP;
_result;